
package com.hlkj.pay.infrastructure.mapper.ad;
/*
 * Hlpay-Plus aggregate payment system.
 * Copyright (c) 2024-2025 Hlpay Team Copyright has the right of final interpretation.
 */

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import com.hlkj.framework.mybatis.core.mapper.BaseMapperX;
import com.hlkj.pay.dto.ad.AdPayOrderDto;
import com.hlkj.pay.infrastructure.model.ad.AdPayOrderDO;

/**
 * @author HlpayTeam
 * @date 2024/10/23 9:07
 */
@Mapper
public interface AdPayOrderMapper extends BaseMapperX<AdPayOrderDO> {

    /**
     *
     * @param mpPage
     * @param queryWrapper
     */
    IPage<AdPayOrderDto> selectPayPage(IPage<AdPayOrderDto> mpPage, @Param("ew") QueryWrapper<AdPayOrderDto> queryWrapper);

    /**
     * 
     * @param adId
     * @param callOrderCount
     * @param callOrderNo
     * @return
     */
    int updateCallOrder(@Param("adId") Long adId, @Param("callOrderCount") int callOrderCount, @Param("callOrderNo") String callOrderNo);
    /**
     *
     * @param adId
     * @param callOrderCount
     * @param callOrderNo
     * @return
     */
    int updateCallOrderAll(@Param("adId") Long adId, @Param("callOrderCount") int callOrderCount, @Param("callOrderNo") String callOrderNo);

}
